var SETTING_FILE_PATH = "../file/load.do?method=get&bizType=SETTING&fileName=";
var MSG_FILE_PATH = "../file/load.do?method=get&bizType=CHAT&fileName=";
var QUESTION_FILE_PATH = "../file/load.do?method=get&bizType=QUESTION";//后面没有参数&fileName=，在拼装的代码那里组合放到最后面
var UPLOAD_URL = "../file/load.do?method=upload";

	
//SESSION类型表示整个对象的交互，而会话的结束时采用NOTIFY+END_SESSION方式通知的
var MESSAGE_EVENT = {GET_GROUP : "GET_GROUP", CHAT:"CHAT", RECEIPT:"RECEIPT", SESSION:"SESSION", GROUP_LIST:"GROUP_LIST", NOTIFY : "NOTIFY", 
QUESTION_LIST : "QUESTION_LIST", ENTER_GROUP:"ENTER_GROUP", END_SESSION:"END_SESSION", CANCEL_QUEUE:"CANCEL_QUEUE",
AG_CHANGE_STATUS:"AG_CHANGE_STATUS",AG_CHANGE_MAXCHAT:"AG_CHANGE_MAXCHAT",AG_GROUP_AND_MEMBERS:"AG_GROUP_AND_MEMBERS", AG_JOIN_GROUP : "AG_JOIN_GROUP",
AG_END_SESSION: "AG_END_SESSION", AG_RECEIVE_SESSION : "AG_RECEIVE_SESSION", DO_SATISFY : "DO_SATISFY", LEAVEWORD : "LEAVEWORD", AG_LOGOUT : "AG_LOGOUT",
AG_SEND_SATISFY : "AG_SEND_SATISFY", AG_INVITE_AGENT : "AG_INVITE_AGENT", AG_ACCEPT_INVITE : "AG_ACCEPT_INVITE", AG_REJECT_INVITE : "AG_REJECT_INVITE",
AG_CANCEL_INVITE : "AG_CANCEL_INVITE", AG_TRANSFER2_AGENT : "AG_TRANSFER2_AGENT"};

var MESSAGE_NOTIFY = {AGENT_CONFIG:"AGENT_CONFIG", JOIN_GROUP:"JOIN_GROUP", NO_AGENT_ONLINE:"NO_AGENT_ONLINE",NO_SERVICE_TIME : "NO_SERVICE_TIME", 
ENTER_SELF:"ENTER_SELF", QUEUE_POSITION:"QUEUE_POSITION",
ERROR:"ERROR", WE_ARE_TALKING:"WE_ARE_TALKING", AGENT_TALKING : "AGENT_TALKING", QUEUE_OVER_TIME:"QUEUE_OVER_TIME", ADD_TO_QUEUE_FINISH:"ADD_TO_QUEUE_FINISH", 
REMOVE_FORM_QUEUE_FINISH:"REMOVE_FORM_QUEUE_FINISH", CONTINUE_SELF:"CONTINUE_SELF", QUEUE_RECEIVE_ED:"QUEUE_RECEIVE_ED", QUEUE_ADD_ED:"QUEUE_ADD_ED",
QUEUE_CANCEL_ED:"QUEUE_CANCEL_ED", INVITE : "INVITE", MEMBER_STATUS:"MEMBER_STATUS", AG_END_SESSION_ED:"AG_END_SESSION_ED", END_SESSION : "END_SESSION", 
AUTO_TO_MANUAL : "AUTO_TO_MANUAL", AG_SEND_SATISFY : "AG_SEND_SATISFY", AG_INVITE_AGENT : "AG_INVITE_AGENT", AG_INVITE_AGENT_CANCEL_ED : "AG_INVITE_AGENT_CANCEL_ED",
AG_INVITE_AGENT_ACCEPT_ED : "AG_INVITE_AGENT_ACCEPT_ED", AG_INVITE_AGENT_REJECT_ED: "AG_INVITE_AGENT_REJECT_ED", AG_INVITE_AGENT_END : "AG_INVITE_AGENT_END",
AG_TRANSFER2_AGENT:"AG_TRANSFER2_AGENT", AG_TRANSFER2_SUCCESS : "AG_TRANSFER2_SUCCESS"};

		
var MULIT_TYPE = {TEXT:"TEXT", FILE:"FILE", AUDIO:"AUDIO", VIDEO:"VIDEO", RICH:"RICH", IMG:"IMG", ORDER:"ORDER", MAP : "MAP"};
var SENDER_ROLE = {SYSTEM:"s", AGENT:"a", MANAGER:"m", VISITOR:"v"};
// 服务端的状态有四个：LOGIN\SELF\QUEUE\AGENT，客户端增加几个状态：LIST_GROUP、CANCEL_QUEUE、QUEUE_OVER_TIME、END
var CLIENT_SESSION_STEP = {LIST_GROUP:"LIST_GROUP", LOGIN:"LOGIN", SELF:"SELF", QUEUE:"QUEUE", AGENT:"AGENT", END:"END", CANCEL_QUEUE:"CANCEL_QUEUE", QUEUE_OVER_TIME:"QUEUE_OVER_TIME"};
var GUIDE_POLICY ={BUTTON:0, ALERT:1, SHOW_BOX:2, HIDE_BUTTON:2};
var CHAT_MAX_TYPE = {AGENT_DEFINED : 0, MANAGER_DEFINED : 1};

var MEMBER_STATUS = {ONLINE : "ONLINE", OFFLINE : "OFFLINE", END : "END", QUEUE : "QUEUE", HISTORY : "HISTORY"};

var TEXT = {
	REQUESTING : "正在请求，请稍后……",
	AGENT_TALKING : "坐席已经接入会话,您可以进行聊天",
	AGENT_SERVICING: "坐席正在为您服务",
	AGENT_NO_SERVICING : "坐席暂时离开了",
	AGENT_END_SESSION : "坐席已经结束会话，请结束后重新访问",
	NO_AGENT_ONLINE : "当前无坐席服务，请稍后访问",
	ENTER_SELF : "嘿，我们开始聊天吧",
	SELECT_GROUP_TITLE : "请选择咨询的组",
	SELECT_QUESTION : "请选择您想咨询的问题，或者直接发消息吧",
	END : "会话已经结束，感谢您的访问",
	CLICK_TO_CANCEL_QUEUE : "，取消排队",
	CLICK_TO_CONTINUE : "，重新访问",
	CLICK_TO_SATISFY : "，评价",
	CLICK_TO_LEAVEWORD : "，留言",
	WE_ARE_TALKING : "哈哈，我们正在聊天哦，你懂的",
	CONTINUE_SELF : "当前无坐席在线，请稍后访问我们，感谢您的支持",
	QUEUE_POSITION : "请稍等，您排在第N位，已排队<span id='queueDuration'>X</span> &nbsp<a href='javascript:cancelQueue()'>取消</a> &nbsp<a href='javascript:toggleLw()'>留言</a>",
	QUEUE_POSITION_NO_LINK : "请稍等，您排在第N位，已排队<span id='queueDuration'>X</span>",
	ERROR : "操作失败，请重新访问",
	CANCEL_QUEUE : "已取消排队",
	QUEUE_OVER_TIME : "您排队已经超时，请稍后访问",
	QUEUING : "您正在排队，请稍后",
	ERROR_STATUS : "当前状态不允许该操作",
	EVENT_TIP_ENTER_GROUP : "选择了技能组",
	EVENT_INIT_SESSION : "访客来访",
	EVENT_TIP_END_SESSION : "访客主动结束会话",
	REFRESH_TO_LOAD : "请刷新后操作",
	LOAD_ON_OTHER_PAGE : "您已经在其他页面登陆，点击重新访问",
	SENDING : "发送中",
	CONFIRM : "确定",
	CANCEL : "取消",
	CONFIRM_TITLE : "确认操作",
	CONFIRM_END_SESSION : "是否确认结束会话？",
	SEND_FAIL : "发送失败",
	CONFIRM_CANCEL_QUEUE : "是否确认取消排队",
	DOWNLOAD : "下载",
	DO_SUCCESS : "操作成功",
	DO_ERROR : "操作失败",
	ME : "我",
	CUT_TIP : "请采用本地工具截图后<br/>Ctrl+V粘贴到输入框发送",
	INPUT_MSG_LIMIT : "请不要超过500字符",
	HAVE_NEW_MESSAGE : "你有新的消息",
	VISITOR_HAVE_NEW_MESSAGE : "收到客服系统给您发来消息",
	AGENT_HAVE_NEW_MESSAGE : "收到访客给您发来消息",
	SATISFY_TOP : "满意度评价",
	SATISFY_LEVEL_5 : "5 非常满意",
	SATISFY_LEVEL_4 : "4 满意",
	SATISFY_LEVEL_3 : "3 一般",
	SATISFY_LEVEL_2 : "2 不满意",
	SATISFY_LEVEL_1 : "1 非常不满意",
	SELECT_SATISFY_ITEM : "请选择评价的选项",
	MORE : "查看更多历史消息^",
	NO_MORE : "已无更多历史消息",
	INPUT_FULL_INFO : "请填写完整的信息",
	clickNickname : "[聊天昵称]", 
	clickLeaveword : "[我要留言]"	,
	THANKS_LEAVEWORD : "感谢您的留言，我们将尽快处理",
	SEND : "发送",
	VIEW_LARGER : "查看大图",
	SEND_IMAGE : "发送截图",
	NO_SERVICE_TIME : "当前非服务时间",
	FAQ_TITLE : "常见问题",
	PLEASE_INPUT_MESSAGE : "请输入消息后发送",
	LW_Y : "已处理",
	LW_N : "未处理",
	NO_LW : "无相关留言",
	LW_DETAIL : "点击查看留言详情",
	VIEW : "点击查看",
	MAP : "地图",
	RECORDING : "您正在录音中……",
	AGENT_SERVICE : "客服工作台"
};

var AGENT_TEXT = {
	VISITOR_ERROR : "收到无效的访客进入消息",
	GO_AWAY : "暂停",
	ONLINE : "服务中",
	ONLINE_TIP : "进入会话，请处理",
	OFFLINE_TIP : " 访客离开会话",
	END_TIP : " 访客已经结束会话",
	AG_END_SESSION_ED : " 结束会话操作成功",
	AG_TRANSFER2_SUCCESS : "转出会话被接受",
	HISTORY : "历史会话",
	DO_SEND_ONLY_TALKING: "请选择一个在线访客",
	PLEASE_RECEIVE_QUEUE : "排队中的访客请先接入后再聊天",
	NO_ANY_GROUP : "您没有处于任何技能组，无法进行任何服务",
	JOIN_GROUP_SUCCESS : "完成登陆技能组", 
	AG_LOGOUT : "确认退出在线客服服务",
	CRM_SESSION_ERROR : "无CRM相关会话",
	CONFIRM_SATISFY : "确认下发满意度",
	SATISFY_ERROR : "下发失败，访客已下线或者已经做过评价",
	INVITING : "正在邀请坐席：",
	TRANSFERING : "正在转接给坐席：",
	WAITING_HANDLE : "邀请您加入会话",
	WAITING_TRANSFER : "给您转接一个会话",
	ACCEPT : "接入",
	REJECT : "拒接",
	AGENT_ENTER : "坐席进入会话",
	INVITING_AGENT : "所邀请的坐席",
	ACCEPT2 : "接入了邀请",
	REJECT2 : "拒接了邀请",
	AG_INVITE_AGENT_END : "坐席退出会话",
	CLICK_2_SEE_AGENTS : "点击查看群聊成员"
};


var ARCHIVE_EVENT = {
	INIT_SSN : "INIT_SSN", 
	OFFLINE : "OFFLINE", 
	CHAT : "CHAT", 
	QUEUE_RECEIVE_ED : "QUEUE_RECEIVE_ED",
	ENTER_GROUP : "ENTER_GROUP", 
	ENTER_GROUP_RESULT : "ENTER_GROUP_RESULT",
	QUEUE_OVER_TIME : "QUEUE_OVER_TIME",
	AG_RECEIVE_SESSION : "AG_RECEIVE_SESSION",
	SILENT_END : "SILENT_END", 
	RE_VISIT : "RE_VISIT",
	AG_ACCEPT_INVITE : "AG_ACCEPT_INVITE",
	AG_INVITE_AGENT : "AG_INVITE_AGENT",
	AG_REJECT_INVITE : "AG_REJECT_INVITE",
	AG_END_INVITE : "AG_END_INVITE",
	LW : "LW",
	BY_AG_LOGOUT : "BY_AG_LOGOUT",
	AG_TRANSFER2_AGENT : "AG_TRANSFER2_AGENT"
};

var ARCHIVE_EVENT_TEXT = {
	QUEUE_RECEIVE_ED : "请求被接入", 
	QUEUE_OVER_TIME : "排队超时",
	INIT_SSN : "访问坐席", 
	OFFLINE:"超时离线", 
	GROUP_LIST:"显示技能组列表", 
	QUESTION_LIST : "常见问题推送", 
	ENTER_GROUP:"请求进入技能组", 
	END_SESSION:"访客结束会话", 
	GET_GROUP:"获取技能组列表", 
	CANCEL_QUEUE:"取消排队", 
	OTHER:"其他消息",
	ENTER_GROUP_RESULT: "请求进入技能组-->",
	AG_END_SESSION : "坐席结束会话",
	AG_RECEIVE_SESSION : "坐席主动接入会话",
	SILENT_END : "由于太久没收到消息,会话自动结束",
	RE_VISIT : "访客再次访问而自动结束未关闭的会话",
	AG_ACCEPT_INVITE : "接入邀请",
	AG_INVITE_AGENT : "发起邀请坐席",
	AG_REJECT_INVITE : "拒接邀请",
	AG_END_INVITE : "退出会话",
	LW : "留言消息",
	BY_AG_LOGOUT : "坐席退出而结束会话",
	AG_TRANSFER2_AGENT : "转接会话至坐席",
	AG_TRANSFER2_SUCCESS : "转出会话被接受"
};

var ENTER_GROUP_RESULT = {
	ERROR:"失败", 
	SELF:"自助聊天", 
	QUEUE:"排队等待", 
	NO_AGENT_ONLINE:"无坐席在线", 
	AGENT:"坐席即刻服务"
};

var END_SESSION_REASON = {
	BY_AGENT:"坐席结束", 
	BY_VISITOR:"访客结束", 
	BY_SILENT:"静默结束", 
	BY_OFFLINE:"访客超时结束" 
};

var CRM_LEVEL={
	"1":"普通",
	"2":"会员",
	"3":"黄金",
	"4":"红名单"
};


var SESSION_STEP_TEXT={
	"LOGIN":"未请求",
	"SELF":"自助聊天",
	"QUEUE":"排队中",
	"AGENT":"坐席接入",
	"END":"会话结束",
	"CANCEL_QUEUE":"取消排队",
	"QUEUE_OVER_TIME":"排队超时"
};

var SHOW_PIC={
	"w" : 300,
	"h" : 300
};

var SERVICE_STATUS={
	ONLINE : "ONLINE",
	GO_AWAY : "GO_AWAY"
};
